﻿@model IEnumerable<ThesisSystem.Models.Profession>

@{
    ViewBag.Title = "Index";
}

<table>
    <tr>
        <th>
            专业
        </th>
        <th>部系</th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.ProfessionName)
        </td>
        <td>@Html.DisplayFor(m=>item.Department.DepartmentName)</td>
        <td>
            @Html.ActionLink("修改", "Edit", new { id=item.ProfessionID }) |
            @Html.ActionLink("删除", "Delete", new { id=item.ProfessionID })
        </td>
    </tr>
}

</table>
